<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title><?php echo ($title ? $title . ' - ' : '') . TITLE; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    
    <?php include_once('includes/header.php'); ?>
    <?php echo $stylesheets; ?>
  </head>

  <body>
    <?php include_once('includes/top-nav.php'); ?>
    <div class="main-container" id="main-container">
      <div class="main-container-inner">
        <?php include_once('includes/menu.php'); ?>
        
        <div class="main-content">
          <?php include_once('includes/breadcrumb.php'); ?>
          <div class="page-content">
            <div class="page-header">
              <h1>
                <?php echo $action; ?>
                <small>
                  <i class="icon-double-angle-right"></i>
                  <?php if(isset($btnActtion) && !empty($btnActtion)): ?>
                    <a href="<?php echo site_url(module_controller($btnActtion)); ?>" class="btn btn-minier"><?php echo $lblActtion; ?></a>
                  <?php endif; ?>
                </small>
              </h1>
            </div><!-- /.page-header -->

            <div class="row">
              <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <?php 
                  echo msg();
                  $this->template->content();
                ?>
                <!-- PAGE CONTENT ENDS -->
              </div><!-- /.col -->
            </div><!-- /.row -->
          </div><!-- /.page-content -->
        </div><!-- /.main-content -->
                
        <?php //include_once('includes/setting.php'); ?>
                
      </div><!-- /.main-container-inner -->

      <a href="javascript: void(0);" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="icon-double-angle-up icon-only bigger-110"></i>
      </a>
    </div><!-- /.main-container -->

    <!-- basic scripts -->
    <?php include_once('includes/footer.php'); ?>
    <?php echo $javascripts; ?>
  </body>
</html>